﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F69 RID: 3945
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicScepterSelectInfo : IMessage<RogueMagicScepterSelectInfo>, IMessage, IEquatable<RogueMagicScepterSelectInfo>, IDeepCloneable<RogueMagicScepterSelectInfo>, IBufferMessage
	{
		// Token: 0x1700320D RID: 12813
		// (get) Token: 0x0600B0D3 RID: 45267 RVA: 0x001DE227 File Offset: 0x001DC427
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicScepterSelectInfo> Parser
		{
			get
			{
				return RogueMagicScepterSelectInfo._parser;
			}
		}

		// Token: 0x1700320E RID: 12814
		// (get) Token: 0x0600B0D4 RID: 45268 RVA: 0x001DE22E File Offset: 0x001DC42E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicScepterSelectInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700320F RID: 12815
		// (get) Token: 0x0600B0D5 RID: 45269 RVA: 0x001DE240 File Offset: 0x001DC440
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicScepterSelectInfo.Descriptor;
			}
		}

		// Token: 0x0600B0D6 RID: 45270 RVA: 0x001DE247 File Offset: 0x001DC447
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicScepterSelectInfo()
		{
		}

		// Token: 0x0600B0D7 RID: 45271 RVA: 0x001DE25A File Offset: 0x001DC45A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicScepterSelectInfo(RogueMagicScepterSelectInfo other) : this()
		{
			this.selectScepters_ = other.selectScepters_.Clone();
			this.selectHintId_ = other.selectHintId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B0D8 RID: 45272 RVA: 0x001DE290 File Offset: 0x001DC490
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicScepterSelectInfo Clone()
		{
			return new RogueMagicScepterSelectInfo(this);
		}

		// Token: 0x17003210 RID: 12816
		// (get) Token: 0x0600B0D9 RID: 45273 RVA: 0x001DE298 File Offset: 0x001DC498
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueMagicScepter> SelectScepters
		{
			get
			{
				return this.selectScepters_;
			}
		}

		// Token: 0x17003211 RID: 12817
		// (get) Token: 0x0600B0DA RID: 45274 RVA: 0x001DE2A0 File Offset: 0x001DC4A0
		// (set) Token: 0x0600B0DB RID: 45275 RVA: 0x001DE2A8 File Offset: 0x001DC4A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SelectHintId
		{
			get
			{
				return this.selectHintId_;
			}
			set
			{
				this.selectHintId_ = value;
			}
		}

		// Token: 0x0600B0DC RID: 45276 RVA: 0x001DE2B1 File Offset: 0x001DC4B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicScepterSelectInfo);
		}

		// Token: 0x0600B0DD RID: 45277 RVA: 0x001DE2C0 File Offset: 0x001DC4C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicScepterSelectInfo other)
		{
			return other != null && (other == this || (this.selectScepters_.Equals(other.selectScepters_) && this.SelectHintId == other.SelectHintId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B0DE RID: 45278 RVA: 0x001DE310 File Offset: 0x001DC510
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.selectScepters_.GetHashCode();
			if (this.SelectHintId != 0U)
			{
				num ^= this.SelectHintId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B0DF RID: 45279 RVA: 0x001DE35D File Offset: 0x001DC55D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B0E0 RID: 45280 RVA: 0x001DE365 File Offset: 0x001DC565
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B0E1 RID: 45281 RVA: 0x001DE370 File Offset: 0x001DC570
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.selectScepters_.WriteTo(ref output, RogueMagicScepterSelectInfo._repeated_selectScepters_codec);
			if (this.SelectHintId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.SelectHintId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B0E2 RID: 45282 RVA: 0x001DE3C0 File Offset: 0x001DC5C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.selectScepters_.CalculateSize(RogueMagicScepterSelectInfo._repeated_selectScepters_codec);
			if (this.SelectHintId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SelectHintId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B0E3 RID: 45283 RVA: 0x001DE414 File Offset: 0x001DC614
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicScepterSelectInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.selectScepters_.Add(other.selectScepters_);
			if (other.SelectHintId != 0U)
			{
				this.SelectHintId = other.SelectHintId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B0E4 RID: 45284 RVA: 0x001DE461 File Offset: 0x001DC661
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B0E5 RID: 45285 RVA: 0x001DE46C File Offset: 0x001DC66C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 34U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.SelectHintId = input.ReadUInt32();
					}
				}
				else
				{
					this.selectScepters_.AddEntriesFrom(ref input, RogueMagicScepterSelectInfo._repeated_selectScepters_codec);
				}
			}
		}

		// Token: 0x0400479E RID: 18334
		private static readonly MessageParser<RogueMagicScepterSelectInfo> _parser = new MessageParser<RogueMagicScepterSelectInfo>(() => new RogueMagicScepterSelectInfo());

		// Token: 0x0400479F RID: 18335
		private UnknownFieldSet _unknownFields;

		// Token: 0x040047A0 RID: 18336
		public const int SelectSceptersFieldNumber = 4;

		// Token: 0x040047A1 RID: 18337
		private static readonly FieldCodec<RogueMagicScepter> _repeated_selectScepters_codec = FieldCodec.ForMessage<RogueMagicScepter>(34U, RogueMagicScepter.Parser);

		// Token: 0x040047A2 RID: 18338
		private readonly RepeatedField<RogueMagicScepter> selectScepters_ = new RepeatedField<RogueMagicScepter>();

		// Token: 0x040047A3 RID: 18339
		public const int SelectHintIdFieldNumber = 14;

		// Token: 0x040047A4 RID: 18340
		private uint selectHintId_;
	}
}
